#!/bin/bash

# 设置手柄配置
JOY_CONFIG="atk3"
CONFIG_FILEPATH="./${JOY_CONFIG}.config.yaml"

# 启动节点，重定向输出到 /dev/null
nohup ros2 launch teleop_twist_joy teleop-launch.py \
    config_filepath:=${CONFIG_FILEPATH} \
    > /dev/null 2>&1 &

echo "Teleop_twist_joy launched with:"
echo "- Config file: ${CONFIG_FILEPATH}"
